class CreateAnnotations < ActiveRecord::Migration
  def self.up
    create_table :annotations do |t|
      t.text :tarefas_plan, :null => false
      t.text :tarefas_exec, :null => false
      t.date :data_inicio
      t.date :data_fim
      t.text :dificuldades
      t.text :observacoes
      t.string :funcao, :null => false
      t.integer :usuario_id, :null => false
      t.integer :projeto_id, :null => false

      t.timestamps
    end
  end

  def self.down
    drop_table :annotations
  end
end
